#pragma once
#include <opencv\cv.h>
#include "processstep.hxx"

class ProcessStream;
class VIBE;

class ForegroundDetectionStep :
	public ProcessStep
{
public:
	ForegroundDetectionStep(ProcessStream* stream);
	~ForegroundDetectionStep(void);

	void execute();
	void initialize();

private:

	IplImage* _inputImage;
	IplImage* _grayImage;
	IplImage* _segImage;

	IplImage* _imageHeader;

	IplImage* _maskImage;
	IplImage* _splitImages[ 3 ];

	VIBE* _vibe;
};

